package net.inxweb.bluemeerkat.infra.jcr.modeshap;

import org.modeshape.graph.SecurityContext;

public class CustomSecurityContext implements SecurityContext {
    /**
     * {@inheritDoc}
     * 
     * @see org.modeshape.graph.SecurityContext#getUserName()
     */
    public String getUserName() {
        return "Fred";
    }

    /**
     * {@inheritDoc}
     * 
     * @see org.modeshape.graph.SecurityContext#hasRole(java.lang.String)
     */
    public boolean hasRole( String roleName ) {
        return true;
    }

    /**
     * {@inheritDoc}
     * 
     * @see org.modeshape.graph.SecurityContext#logout()
     */
    public void logout() {
        // do something
    }
}
